import request from '@/utils/request'

export const reqSpuImageList = (spuId) => request({ url: `/admin/product/spuImageList/${spuId}`, method: "get" })

export const reqSpuSaleAttrList = (spuId) => request({ url: `/admin/product/spuSaleAttrList/${spuId}`, method: "get" })

export const reqAttrInfoList = (Category1Id, Category2Id, Category3Id) => request({ url: `/admin/product/attrInfoList/${Category1Id}/${Category2Id}/${Category3Id}`, method: "get" })

export const reqSkuList = (page, limit) => request({ url: `/admin/product/list/${page}/${limit}`, method: 'get' })

export const reqSale = (skuId) => request({ url: `/admin/product/onSale/${skuId}`, method: 'get' })

export const reqCancel = (skuId) => request({ url: `/admin/product/cancelSale/${skuId}`, method: 'get' })

export const reqSkuById = (skuId) => request({ url: `/admin/product/getSkuById/${skuId}`, method: 'get' })